<?php
$securities_param = get_param_value('securities_param', 'xray_securities_param', '');
if (!$securities_param) {
	$securities_param = $vars['sec'];
}
$_SESSION['xray_securities_param'] = $securities_param;
//print_r($securities_param);

$fund_param = get_param_value('fund_param', 'xray_fund_param', '');
$_SESSION['xray_fund_param'] = $fund_param;
?>
<?php
$action_url = elgg_get_site_url()."xray/redirect";
echo "<form method='get' action='$action_url' style='height: 12px;'>";
/*
echo elgg_view('input/autocomplete_securities', array(
	'name' => 'securities_param',
	'value' => $securities_param,
	'width' => 'auto',
));
*/

echo 'Fund: '.elgg_view('input/dropdown', array(
	'name' => 'fund_param',
	'value' => $fund_param,
	'options_values' => get_fund_array(),
));

echo elgg_view('input/submit', array(
		'name' => 'search',
		'value' => 'Display',
		'style' => 'margin-top: -10px;',
));
echo "</form>";
?>
